Optimal. Leaf size=130 \[ \frac {4 e^{c (a+b x)} \, _2F_1\left (1,-\frac {i b c}{2 e};1-\frac {i b c}{2 e};-e^{2 i (d+e x)}\right )}{b c}-\frac {4 e^{c (a+b x)} \, _2F_1\left (2,-\frac {i b c}{2 e};1-\frac {i b c}{2 e};-e^{2 i (d+e x)}\right )}{b c}-\frac {e^{c (a+b x)}}{b c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {4442, 2194, 2251} \[ \frac {4 e^{c (a+b x)} \, _2F_1\left (1,-\frac {i b c}{2 e};1-\frac {i b c}{2 e};-e^{2 i (d+e x)}\right )}{b c}-\frac {4 e^{c (a+b x)} \, _2F_1\left (2,-\frac {i b c}{2 e};1-\frac {i b c}{2 e};-e^{2 i (d+e x)}\right )}{b c}-\frac {e^{c (a+b x)}}{b c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2194
Rule 2251
Rule 4442
Rubi steps
\begin {align*} \int e^{c (a+b x)} \tan ^2(d+e x) \, dx &=-\int \left (e^{c (a+b x)}+\frac {4 e^{c (a+b x)}}{\left (1+e^{2 i (d+e x)}\right )^2}-\frac {4 e^{c (a+b x)}}{1+e^{2 i (d+e x)}}\right ) \, dx\\ &=-\left (4 \int \frac {e^{c (a+b x)}}{\left (1+e^{2 i (d+e x)}\right )^2} \, dx\right )+4 \int \frac {e^{c (a+b x)}}{1+e^{2 i (d+e x)}} \, dx-\int e^{c (a+b x)} \, dx\\ &=-\frac {e^{c (a+b x)}}{b c}+\frac {4 e^{c (a+b x)} \, _2F_1\left (1,-\frac {i b c}{2 e};1-\frac {i b c}{2 e};-e^{2 i (d+e x)}\right )}{b c}-\frac {4 e^{c (a+b x)} \, _2F_1\left (2,-\frac {i b c}{2 e};1-\frac {i b c}{2 e};-e^{2 i (d+e x)}\right )}{b c}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.67, size = 174, normalized size = 1.34 \[ e^{c (a+b x)} \left (\frac {2 i e^{2 i d} \left (b c e^{2 i e x} \, _2F_1\left (1,1-\frac {i b c}{2 e};2-\frac {i b c}{2 e};-e^{2 i (d+e x)}\right )-(b c+2 i e) \, _2F_1\left (1,-\frac {i b c}{2 e};1-\frac {i b c}{2 e};-e^{2 i (d+e x)}\right )\right )}{\left (1+e^{2 i d}\right ) e (b c+2 i e)}-\frac {1}{b c}+\frac {\sec (d) \sin (e x) \sec (d+e x)}{e}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.74, size = 0, normalized size = 0.00 \[ {\rm integral}\left (e^{\left (b c x + a c\right )} \tan \left (e x + d\right )^{2}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int e^{\left ({\left (b x + a\right )} c\right )} \tan \left (e x + d\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.14, size = 0, normalized size = 0.00 \[ \int {\mathrm e}^{c \left (b x +a \right )} \left (\tan ^{2}\left (e x +d \right )\right )\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {e \cos \left (2 \, e x + 2 \, d\right )^{2} e^{\left (b c x + a c\right )} - 2 \, b c e^{\left (b c x + a c\right )} \sin \left (2 \, e x + 2 \, d\right ) + e e^{\left (b c x + a c\right )} \sin \left (2 \, e x + 2 \, d\right )^{2} + 2 \, e \cos \left (2 \, e x + 2 \, d\right ) e^{\left (b c x + a c\right )} + e e^{\left (b c x + a c\right )} + \frac {2 \, {\left (b^{2} c^{2} e^{2} \cos \left (2 \, e x + 2 \, d\right )^{2} + b^{2} c^{2} e^{2} \sin \left (2 \, e x + 2 \, d\right )^{2} + 2 \, b^{2} c^{2} e^{2} \cos \left (2 \, e x + 2 \, d\right ) + b^{2} c^{2} e^{2}\right )} e^{\left (a c\right )} \int \frac {e^{\left (b c x\right )} \sin \left (2 \, e x + 2 \, d\right )}{\cos \left (2 \, e x + 2 \, d\right )^{2} + \sin \left (2 \, e x + 2 \, d\right )^{2} + 2 \, \cos \left (2 \, e x + 2 \, d\right ) + 1}\,{d x}}{e^{2}}}{b c e \cos \left (2 \, e x + 2 \, d\right )^{2} + b c e \sin \left (2 \, e x + 2 \, d\right )^{2} + 2 \, b c e \cos \left (2 \, e x + 2 \, d\right ) + b c e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\mathrm {e}}^{c\,\left (a+b\,x\right )}\,{\mathrm {tan}\left (d+e\,x\right )}^2 \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ e^{a c} \int e^{b c x} \tan ^{2}{\left (d + e x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________